/*
 *  errors.h
 *  Untitled
 *
 *  Created by Ben Nolan on 2/11/08.
 *  Copyright 2008 __MyCompanyName__. All rights reserved.
 *
 */

#include <stdexcept>
#include <string>
 
namespace Wonderland {
namespace Errors{

#define WONDERLAND_ERROR(error_class, error_message) \
  class error_class : public std::runtime_error { public: error_class() : std::runtime_error(error_message) { } };

WONDERLAND_ERROR(BadSerialization, "Bad serialization data");

class Fatal : public std::runtime_error { public: Fatal(std::string st) : std::runtime_error(st) { } };

}
}

